<%@ Control Language="C#" AutoEventWireup="true" Inherits="WebC.controls_deptSelect" Codebehind="deptSelect.ascx.cs" %>
<style>
<!--
	.divdept div {margin-top:5px;margin-bottom: 5px;}
-->
</style>
<script type="text/javascript">
function get<%=sId %>dept(obj)
{
    div=obj.parentElement;
    isclear=false;
    for(i=0;i<div.parentElement.children.length;i++)
    {
        if(isclear==true)
        {
            div.parentElement.children[i].outerHTML="";
            i--;
        }
        else
        {
            if(div==div.parentElement.children[i])
                isclear=true;
        }
    }
    shtml=div.parentElement.innerHTML;
    shtml+=controls_deptSelect.getHtmlOf(obj.value,'<%=sId %>').value;
    div.parentElement.innerHTML=shtml;
}
</script>
<div class="divdept" id="<%=sId %>"><asp:Literal ID="ltrDept" runat="server"></asp:Literal></div>
